<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<body>

    <th:block th:fragment="ed(width,height)">
        <link rel="stylesheet" type="text/css" th:href="@{/plugins/editor/css/editormd.min.css}">
        <script th:src="@{/plugins/editor/editormd.min.js}"></script>
        <script type="text/javascript">
            var contentEditor;
            $(
                function () {
                    contentEditor = editormd(
                        "md-content",
                        {
                            width: "[[${width}]]",
                            height: "[[${height}]]",
                            syncScrolling: "single",
                            path: "[[@{/plugins/editor/lib/}]]",
                        }
                    );
                    contentEditor.markdownToHTML("my-content");
                }
            );

        </script>
    </th:block>

</body>

</html>